package com.vcms.utility.loader.storage.factory.impl;

import com.vcms.entity.store.item.CashStoreItem;
import com.vcms.entity.store.item.DrinksStoreItem;
import com.vcms.exception.VMCSException;
import com.vcms.utility.Environment;
import com.vcms.utility.loader.storage.engine.StorageEngine;
import com.vcms.utility.loader.storage.engine.file.impl.CashFileStorageEngine;
import com.vcms.utility.loader.storage.engine.file.impl.DrinkFileStorageEngine;
import com.vcms.utility.loader.storage.factory.StorageFactory;

/**
 * @author robin.foe A0092657U
 * Factory concrete implementation
 */

public class FileStorageFactory extends StorageFactory{

	@Override
	public StorageEngine<CashStoreItem> createCashStorageEngine() throws VMCSException {
		return new CashFileStorageEngine(Environment.getCashPropFile());
	}

	@Override
	public StorageEngine<DrinksStoreItem> createDrinkStorageEngine() throws VMCSException{
		return new DrinkFileStorageEngine(Environment.getDrinkPropFile());
	}
	

}
